package com.ludomancy.gamelib;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;

public class Theme
{
	protected Font defaultFont;
	
	public Theme()
	{
		defaultFont = new Font("Verdana",Font.PLAIN, 11);
	}
		
	public void fillButton(Graphics g, Rectangle area, boolean etched)
	{
		Graphics2D g2 = (Graphics2D) g;
		g2.setColor(new Color(100, 100, 100));
		g2.fill3DRect(0, 0, area.width-1, area.height-1, !etched);
	}
	
	public Color getDefaultBorderColor()
	{
		return Color.WHITE;
	}

	public void fillUIBackground(Graphics g, Rectangle area)
	{
		g.setColor(getUIBackgroundColor());
		g.fillRoundRect(0, 0, area.width, area.height, 10, 10);
		g.setColor(getDefaultBorderColor());
		g.drawRoundRect(0, 0, area.width-1, area.height-1, 10, 10);
	}
	
	public int getButtonRoundness()
	{
		return 10;
	}
	
    public Font getDefaultFont()
    {
        return defaultFont;
    }

	public Color getDefaultTextColor()
	{
		return Color.WHITE;
	}
	
	public Color getUIBackgroundColor()
	{
		return Color.BLACK;
	}
}
